﻿<%@ Page Language="C#" MasterPageFile="/umbraco/masterpages/umbracoPage.Master" AutoEventWireup="true"
    CodeBehind="LogViewer.aspx.cs" Inherits="ClientTools.Section.LogViewer.LogViewer" %>

<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
<%@ Register TagPrefix="cc2" Namespace="umbraco.controls" Assembly="controls" %>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">

    <cc1:TabView ID="MainTab" runat="server" Width="552px" Height="692px" />
    <cc1:Pane ID="MainPane" runat="server">
        <cc1:Pane ID="SearchPanel" runat="server">
            <table>
                <tr>
                    <th><strong>Log Header:</strong></th>
                    <td><asp:DropDownList ID="cboLogHeader" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ReloadItems"></asp:DropDownList></td>
                    <th><strong>Comment:</strong></th>
                    <td><asp:TextBox ID="txtComment" runat="server" OnTextChanged="ReloadItems" AutoPostBack="true"></asp:TextBox></td>
                </tr>
                <tr>
                    <th><strong>Startdate:</strong></th>
                    <td><asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox></td>
                    <th><strong>Enddate:</strong></th>
                    <td><asp:TextBox ID="txtEndDate" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <th><strong>Node ID:</strong></th>
                    <td><asp:TextBox ID="txtNodeId" runat="server" OnTextChanged="ReloadItems" AutoPostBack="true"></asp:TextBox></td>
                    <th><strong>User ID:</strong></th>
                    <td><asp:TextBox ID="txtUserId" runat="server" OnTextChanged="ReloadItems" AutoPostBack="true"></asp:TextBox></td>
                </tr>
                <tr>
                    <th><strong>Max Items:</strong></th>
                    <td><asp:TextBox ID="txtMaxItems" runat="server" OnTextChanged="ReloadItems" AutoPostBack="true"></asp:TextBox></td>
                    <th><strong>Number of returned items:</strong></th>
                    <td><asp:Label ID="lblReturnedItems" runat="server"></asp:Label></td>
                </tr>
            </table>
        </cc1:Pane>

        <cc1:Pane ID="MessagePane" runat="server">
            <cc1:PropertyPanel ID="Message" runat="server" Text="ERROR">
                <asp:Label ID="lblMessage" runat="server"></asp:Label>
            </cc1:PropertyPanel>
        </cc1:Pane>

        <cc1:Pane ID="ResultPanel" runat="server">
            <cc1:PropertyPanel runat="server" ID="ResultTable">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        HeaderStyle-Font-Bold="True" 
                        BackColor="#FEFEFE" 
                        HeaderStyle-Height="18px" 
                        HeaderStyle-VerticalAlign="Middle" 
                        HeaderStyle-BackColor="#F4F4F9"
                        ItemStyle-VerticalAlign="Top" 
                        ItemStyle-Height="16px" 
                        BorderColor="#CFCFCF" 
                        BorderStyle="Solid" 
                        BorderWidth="1px" 
                        Width="100%">
                    <AlternatingRowStyle BackColor="#F7F6FA" />
                    <RowStyle VerticalAlign="Top" Height="16px"/>
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="ChkRows" runat="server" />
                            </ItemTemplate>
                            <ItemStyle Width="20px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID" HeaderText="ID"><ItemStyle Width="20px" /></asp:BoundField>
                        <asp:BoundField DataField="NodeID" HeaderText="NodeID"><ItemStyle Width="20px" /></asp:BoundField>
                        <asp:BoundField DataField="UserID" HeaderText="UserID"><ItemStyle Width="20px" /></asp:BoundField>
                        <asp:BoundField DataField="DateStamp" HeaderText="Datestamp">
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LogHeader" HeaderText="LogHeader" />
                        <asp:BoundField DataField="LogComment" HeaderText="LogComment" />
                    </Columns>
                </asp:GridView>
            </cc1:PropertyPanel>
        </cc1:Pane>
    </cc1:Pane>
</asp:Content>
